package com.china.milkywayeye.invoice.service.impl;

import com.china.milkywayeye.invoice.pojo.NewInvoice;
import com.china.milkywayeye.invoice.service.NewInvoiceService;
import com.china.milkywayeye.invoice.utils.NewInvoiceExtractor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: java-ceshiuse
 * @ClassName: NewInvoiceServiceImpl
 * @Description: 新版发票业务类
 * @Author: milkywayeye
 * @Create: 2024-12-16 17:00
 * @Version: v1.0
 */
@Service
public class NewInvoiceServiceImpl implements NewInvoiceService {

    @Override
    public void getData(String path) {
        List<NewInvoice> newInvoices = NewInvoiceExtractor.newPdfProcessInvoicesInFolder(path);
        NewInvoiceExtractor.newPrintListInvoice(newInvoices, "List");
    }
}
